<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://shiro.apache.org/tags" prefix="shiro" %>
<html>
<head>
    <title>大客户列表</title>

    <!--引入公共的easyui文件头-->
    <%@include file="/WEB-INF/views/commons/common_easyui.jsp" %>

    <script type="text/javascript" src="/static/js/system/bigClient.js"></script>
</head>
<body>

<!--begin信息列表-->
<table id="bigClient_datagrid"></table>
<!--end信息列表-->

<!--begin左上角工具栏-->
<div id="bigClient_tb">
    <shiro:hasPermission name="bigClient:save">
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true"
           data-cmd="add">增加</a>
    </shiro:hasPermission>

    <shiro:hasPermission name="bigClient:delete">
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true"
           data-cmd="remove">删除</a>
    </shiro:hasPermission>

    <shiro:hasPermission name="bigClient:update">
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
    </shiro:hasPermission>

    <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>
    <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-lock',plain:true"
       data-cmd="lock">查看</a>

    <shiro:hasPermission name="bigClient:updateContractState">
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-man',plain:true"
           data-cmd="signed">签约</a>
    </shiro:hasPermission>

    <shiro:hasPermission name="bigClient:updateFollowState">
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true"
           data-cmd="follow">跟进</a>
    </shiro:hasPermission>
    <%--高级查询文本框--%>
    <%--根据学校名字查询--%>
    学校<input class="easyui-textbox" name="querySchool" id="querySchool">
    <%--根据意向学科名字查询--%>
    意向学科<input class="easyui-textbox" name="querySubject" id="querySubject">
    <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true"
       data-cmd="query">查询</a>
</div>
<!--end左上角工具栏-->


<!--begin添加/编辑对话框-->
<div id="bigClient_dialog" align="center">
    <form id="bigClient_form" method="post">
        <table>
            <input type="hidden" name="id" id="bigClientId">
            <tr></tr>
            <tr>客户信息</tr>
            <tr>
                <td>学校名称</td>
                <td><input class="easyui-combobox" name="schoolName"
                           data-options="valueField:'schoolName',textField:'schoolName',url:'/bigClient/getShcoolName', panelHeight:'auto'"
                ></td>
                <td>学校简称</td>
                <td><input class="easyui-textbox" name="abbreviation"></td>
                <td>重要程度</td>
                <td><input class="easyui-combobox" name="important.id"
                           data-options="valueField:'id',textField:'name',url:'/bigClient/getImportantBySn?sn=important', panelHeight:'auto'"
                ></td>
            </tr>
            <tr>
                <td>意向程度</td>
                <td><input class="easyui-combobox" name="intention.id"
                           data-options="valueField:'id',textField:'name',url:'/bigClient/getIntentionBySn?sn=intention', panelHeight:'auto'"
                ></td>
                <td>意向学科</td>
                <td><input class="easyui-combobox" name="intentionSubject.id"
                           data-options="valueField:'id',textField:'name',url:'/bigClient/getIntentionSubject', panelHeight:'auto'"
                ></td>
                <td>意向校区</td>
                <td><input class="easyui-combobox" name="intentionDistrict.id"
                           data-options="valueField:'id',textField:'name',url:'/bigClient/getIntentionDistrictBySn?sn=intentionDistrict', panelHeight:'auto'"
                ></td>
            </tr>
            <tr>
                <td>联系人员</td>
                <td><input class="easyui-combobox" name="linkman.id"
                           data-options="valueField:'id',textField:'name',url:'/bigClient/getLinkman', panelHeight:'auto'"
                ></td>
                <td>营销人员</td>
                <td><input class="easyui-combobox" name="marketer.id"
                           data-options="valueField:'id',textField:'username',url:'/bigClient/getMarketer', panelHeight:'auto'"
                ></td>
                <td>跟进人员</td>
                <td><input class="easyui-combobox" name="merchandiser.id"
                           data-options="valueField:'id',textField:'username',url:'/bigClient/getMerchandiser', panelHeight:'auto'"
                ></td>
            </tr>
            <tr>
                <td>客户状态</td>
                <td><input class="easyui-combobox" name="contractStateId" data-options="
		        valueField: 'value', textField: 'text',
                data: [{value: '0',text: '未签约'},
                       {value: '1',text: '已签约'}], panelHeight:'auto'"></td>
                <td>跟进状态</td>
                <td><input class="easyui-combobox" name="followStateId" data-options="
		        valueField: 'value', textField: 'text',
                data: [{value: '0',text: '未跟进'},
                       {value: '1',text: '已跟进'}], panelHeight:'auto'"
                >
                </td>
                <td>客户优惠</td>
                <td><input class="easyui-textbox" name="clientDiscount"></td>
            </tr>
            <tr>
                <td>上次跟进时间</td>
                <td><input class="easyui-datebox" name="lastFollowTime"></td>
                <td>下次跟进时间</td>
                <td><input class="easyui-datebox" name="nextFollowTime"></td>
            </tr>
        </table>
        <table>
            <tr>学校信息</tr>
            <tr></tr>
            <tr>
                <td>学校地址</td>
                <td><input class="easyui-textbox" name="schoolAddress"></td>
                <td>学校电话</td>
                <td><input class="easyui-textbox" name="schoolTel"></td>
                <td>学校邮箱</td>
                <td><input class="easyui-textbox" name="schoolEmail"></td>
            </tr>
            <tr>
                <td>办学性质</td>
                <td><input class="easyui-combobox" name="propertyOfId" data-options="
		        valueField: 'value', textField: 'text',
                data: [{value: '0',text: '公办'},
                       {value: '1',text: '民办'}], panelHeight:'auto'"></td>
                <td>规定学历</td>
                <td><input class="easyui-combobox" name="education.id"
                           data-options="valueField:'id',textField:'name',url:'/bigClient/getEducationBySn?sn=education', panelHeight:'auto'"
                ></td>
                <td>学校体制</td>
                <td><input class="easyui-combobox" name="schoolSystem.id"
                           data-options="valueField:'id',textField:'name',url:'/bigClient/getSchoolSystemBySn?sn=schoolSystem', panelHeight:'auto'"
                ></td>
            </tr>
            <tr>
                <td>邮政编码</td>
                <td><input class="easyui-textbox" name="postalCode"></td>
                <td>官网</td>
                <td><input class="easyui-textbox" name="website"></td>
            </tr>
            <tr>
                <td>学生人数</td>
                <td><input class="easyui-textbox" name="studentCount"></td>
                <td>IT专业学生人数</td>
                <td><input class="easyui-textbox" name="itStudentCount"></td>
            </tr>
            <tr>
                <td>学校简介</td>
                <td><input class="easyui-textbox" name="introduction"></td>
            </tr>
        </table>
        <table>
            <tr>其他信息</tr>
            <tr>
                <td>备注详情</td>
                <td><input class="easyui-textbox" data-options="width:650,height:80" name="remarks"></td>
            </tr>
        </table>
    </form>
</div>
<!--end添加/编辑对话框-->

<!--begin添加/编辑对话框底部按钮-->
<div id="bigClient_bb">
    <a href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-save" data-cmd="save">保存</a>
    <a href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-cancel" data-cmd="cancel">取消</a>
</div>
<!--end添加/编辑对话框底部按钮-->
</body>
</html>
